export default {

	initLineChartOption(title, xData, yData) {
		return {
			title: {
				text: title,
			},
			xAxis: {
				type: 'category',
				data: xData
			},
			yAxis: {
				type: 'value'
			},
			grid: {
				left: '1%',
				right: '1%',
				bottom: '0%',
				containLabel: true
			},
			series: [{
				data: yData,
				type: 'line',
				smooth: true,
				markLine: {
					silent: true,
					data: [{
						xAxis: 5,
						lineStyle: {
							normal: {
								color: '#A866FF',
								type: 'solid',
								width: 2
							}
						},

					}, {
						xAxis: 20,
						lineStyle: {
							normal: {
								color: '#A866FF',
								type: 'solid',
								width: 2
							}
						},
					}, ]
				}

			}],
			dataZoom: [{
				type: "inside"
			}],
			tooltip: {
				trigger: 'axis',
				axisPointer: {
					type: 'shadow'
				}
			},
		};
	},

	initStepLineChartOption(title, xData, yData) {
		return {
			title: {
				text: title,
			},
			xAxis: {
				type: 'category',
				data: xData,
				axisLine: {
					show: false
				}
			},
			yAxis: {
				type: 'value',
				min: -0.3,
				max: 1,
				splitNumber: 1,
				show: false
			},
			dataZoom: [{
				type: "inside"
			}],
			grid: {
				left: '1%',
				right: '1%',
				bottom: '0%',
				containLabel: true
			},
			series: [{
				data: yData,
				type: 'line',
				step: 'start',
				markLine: {
					silent: true,
					data: [{
						xAxis: 5,
						lineStyle: {
							normal: {
								color: '#A866FF',
								type: 'solid',
							}
						},
					}, {
						xAxis: 20,
						lineStyle: {
							normal: {
								color: '#A866FF',
								type: 'solid',
							}
						},
					}, ]
				}
			}],
			tooltip: {
				trigger: 'axis',
				axisPointer: {
					type: 'shadow'
				}
			},
		};
	},





















}
